<?php if (!class_exists("Template_1f8d3800a3dafea1a075e617f4708f04", false)) { class Template_1f8d3800a3dafea1a075e617f4708f04 extends \suda\template\compiler\suda\Template { protected $name="redirect";protected $module="dxkite/suda:1.0.6"; protected $source="E:\\PHP\\WEB\\system\\resource\\modules\\dxkite-suda\\resource\\template\\default/redirect.tpl.html";protected function _render_template() {  ?><!DOCTYPE html>
<html lang="<?php echo htmlspecialchars(__($this->get("lang",'en')), ENT_SUBSTITUTE | ENT_QUOTES | ENT_HTML5); ?>">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title> <?php echo htmlspecialchars(__($this->get("title",'redirect')), ENT_SUBSTITUTE | ENT_QUOTES | ENT_HTML5); ?> | Powered By Suda System </title>
  <link rel="stylesheet" href="<?php echo suda\template\Manager::assetServer(suda\template\Manager::getStaticAssetPath($this->getModule())); ?>/style.css">
</head>

<body>
  <div class="content-wrapper">
    <div class="redirect">
      <div class="redirect-title">
        <div class="redirect-title-text"><?php echo htmlspecialchars(__("redirect"), ENT_SUBSTITUTE | ENT_QUOTES | ENT_HTML5); ?></div>
        <div class="loading">
          <div class="dot"></div>
          <div class="dot"></div>
          <div class="dot"></div>
          <div class="dot"></div>
        </div>
      </div>
      <?php if ($this->has("message")): ?> 
      <div class="redirect-message"><?php echo htmlspecialchars(__($this->get("message")), ENT_SUBSTITUTE | ENT_QUOTES | ENT_HTML5); ?></div>
      <?php endif; ?><div class="redirect-text">
        <span id="time"><?php echo htmlspecialchars(__('$0 seconds',$this->get("time",5)), ENT_SUBSTITUTE | ENT_QUOTES | ENT_HTML5); ?></span>
        <span><?php echo htmlspecialchars(__('page is redirecting to'), ENT_SUBSTITUTE | ENT_QUOTES | ENT_HTML5); ?> <a href="<?php echo htmlspecialchars($this->get("url"), ENT_SUBSTITUTE | ENT_QUOTES | ENT_HTML5); ?>"> <?php echo htmlspecialchars($this->get("url"), ENT_SUBSTITUTE | ENT_QUOTES | ENT_HTML5); ?> </a></span>
      </div>
      <div class="footer">
        <div class="footer-item">
          <a href="https://github.com/DXkite/suda" target="_black"> <?php echo htmlspecialchars(__('Performance By Suda v$0',SUDA_VERSION), ENT_SUBSTITUTE | ENT_QUOTES | ENT_HTML5); ?></a>
        </div>
      </div>
    </div>

  </div>
</body>
<script>
  window.addEventListener('load', function () {
    const href = "<?php echo htmlspecialchars($this->get("url"), ENT_SUBSTITUTE | ENT_QUOTES | ENT_HTML5); ?>";
    const template = "<?php echo htmlspecialchars(__('$0 seconds','%time%'), ENT_SUBSTITUTE | ENT_QUOTES | ENT_HTML5); ?>";
    var time_counter = document.getElementById('time');
    var time = '<?php echo htmlspecialchars($this->get("time",5), ENT_SUBSTITUTE | ENT_QUOTES | ENT_HTML5); ?>' || 0;
    var interval = setInterval(function () {
      if (time <= 0) {
        clearInterval(interval);
        time_counter.innerText = template.replace('%time%', 0);
        location.href = href;
      }
      else {
        time_counter.innerText = template.replace('%time%', time);
        time--;
      }
    }, 1000);
  });
</script>

</html><?php }} } return ["class"=>"Template_1f8d3800a3dafea1a075e617f4708f04","name"=>"redirect","source"=>"E:\\PHP\\WEB\\system\\resource\\modules\\dxkite-suda\\resource\\template\\default/redirect.tpl.html","module"=>"dxkite/suda:1.0.6"]; 